{literal}
<script type="text/javascript">
<!--
function AlbumDetSubmit(){
    var oMusician = document.getElementsByName('musician_name');
    var oTitle    = document.getElementsByName('album_title');
    if ( (oMusician.value == '') && (oTitle.value == '') ){
	{/literal}
        alert("{language text="check_mandatory_fields_please"}");
	{literal}
        return false;
    }
    return true;
}
//-->
</script>
{/literal}
<form id="AlbumDetail_form" action="{url link='admin.music.view-album' id=$aAlbum.album_id}" method="post" onsubmit="return AlbumDetSubmit();">
<div><input value="{$aAlbum.album_id}" name="album_id" type="hidden"></div>
<table style="width:100%;" class="forumline" cellspacing="0">
    <tr>
        <td class="row-header" colspan="2"><span>{language text="album_details"}</span></td>
    </tr>
    <tr>
        <td class="catBottom" colspan="2">
            <span class="gensmall">{language text="here_you_can_edit_album_details"}</span>
        </td>
    </tr>
    <tr>
        <td class="row1" style="text-align: center;">
            {img max_width="80" max_height="80" src="`$sAlbumImageUrl``$aAlbum.album_id`.jpg" src_def="design/pic/noimage_75.jpg" class="pic1" onmouseover="showInfo5('`$aAlbum.album_title`', '', '');this.className='pic2';" onmouseout="this.className='pic1';return nd();"}
        </td>
        <td class="row2">
            {if $bAlbumPic == 1}
            <a href="{url link='admin.sections.music-album' action=delete_pic id=$aAlbum.album_id}">[ {language text="delete_this_image"} ]</a>
            {/if}
        </td>
    </tr>
    <tr>
        <td class="row1" style="text-align: right;"><span class="star">*</span> {language text="musician"}: </td>
        <td class="row2"> <input name="musician_name" value="{$aAlbum.musician_name}" size="50">
        </td>
    </tr>
    <tr>
        <td class="row1" style="text-align: right;"><span class="star">*</span> {language text="album_title"}:</td>
        <td class="row2"><input name="album_title" value="{$aAlbum.album_title}" size="50">
        </td>
    </tr>
    <tr>
        <td class="row1" style="text-align: right;">{language text="genre"}:</td>
        <td class="row2">
            <select name="genre_sel">
            {html_options options=$aGenres selected=$aAlbum.genre_id}
            </select>
        </td>
    </tr>
    <tr>
        <td class="row1" style="text-align: right;">{language text="year"}:</td>
        <td class="row2"><input name="album_year" value="{if $aAlbum.album_year == '0000'}- - - -{else}{$aAlbum.album_year}{/if}" type="text"></td>
    </tr>
    <tr>
        <td class="row1" style="text-align: right;">{language text="list_of_songs"}:</td>
        <td class="row2" style="text-align: left;">
            <table cellpadding="2" cellspacing="0">
        {foreach from=$aSongs item=aSong name=song}
              <tr>
                <td>
                    <a href="#" onclick='window.open("{url link='public.popup.play' id=$aSong.song_id}", "mp3_Player", "width=480, height=150");return false;'>{$aSong.song_title}</a>
                </td>
                <td>
                    <select name="song_genre[{$aSong.song_id}]">
                    {html_options options=$aGenres selected=$aSong.genre_id}
                    </select>
                </td>
              </tr>
        {foreachelse}
              <tr>
                <td colspan="2"><div class="message_info">{language text="there_are_no_songs_in_this_album_ye"}</div></td>
              </tr>
        {/foreach}
            </table>
        </td>
    </tr>
    <tr>
        <td class="row1" style="text-align: right;">{language text="album_description"}:</td>
        <td class="row2">
            <textarea name="album_description" cols="40" rows="10">{$aAlbum.album_description}</textarea>
        </td>
    </tr>
    <tr>
    </tr>
    <tr>
      <td class="catBottom" style="text-align: right;"></td>
      <td class="catBottom" style="font-size: 8pt; text-align: center;">
         <input name="act[album_save]"    value=" {language text="save_changes"} " type="submit">
         <input name="act[album_approve]" value=" {language text="approve_album"} " type="submit">
         <input name="act[album_deny]"    value=" {language text="deny_album"} " onclick="return window.confirm(' {language text="are_you_shure"} ')" type="submit">
      </td>
    </tr>
 </table>
</form>
<div><p />
    <b><span class="star">*</span> - {language text="mandatory_fields"}</b>
</div>